package com.leo.foodmaster.admin.recipe.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.leo.foodmaster.commons.entity.BaseEntity;
import com.leo.foodmaster.commons.entity.File;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.math.BigDecimal;
import java.util.List;

/**
 * 套餐主表
 *
 * @author Mark sunlightcs@gmail.com
 * @since 1.0.0 2021-11-09
 */
@Data
@EqualsAndHashCode(callSuper=false)
@TableName(value = "recipe_combo", autoResultMap = true)
@Accessors(chain = true)
public class RecipeComboEntity extends BaseEntity {
	private static final long serialVersionUID = 1L;

    /**
     * 所属公司Id
     */
	private Long organId;
	/**
	 * 菜品状态：0（正常）1（停用）
	 */
	private String status;
    /**
     * 套餐价格
     */
	private BigDecimal price;
    /**
     * 套餐重量
     */
	private BigDecimal weight;
    /**
     * 分配单位
     */
	private Integer expressionUnit;
    /**
     * 套餐图片
     */
	@TableField(typeHandler = JacksonTypeHandler.class)
	private List<File> pics;

	@TableField(exist = false)
	private List<RecipeComboDetailsEntity> detailList;

}
